package cn.his.medical.phismange.app.base

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
abstract class BaseActivityKt : AppCompatActivity(){
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(getLayoutId())
        if (savedInstanceState != null) {
            initEventAndData(savedInstanceState)
        }
        initEventAndData()
    }

    abstract fun getLayoutId() :Int
    abstract fun initEventAndData()
    abstract fun initEventAndData(savedInstanceState : Bundle );
}